<template>
	<view class="content">
		<!-- <HomeHeader class="hswi"></HomeHeader> -->
		<HomeSwiper :list="swiperList" class="hswi"></HomeSwiper>
		<HomeContent :list="HomeContentList" class="hswi"></HomeContent>
		<HomeSpecial class="hswi"></HomeSpecial>
		<!-- <BottomMenu></BottomMenu> -->
	</view>
</template>

<script>
	import HomeHeader from './components/Header'
	import HomeSwiper from './components/swiper.vue'
	import HomeContent from './components/HomeContent.vue'
	import HomeSpecial from './components/HomeSpecial.vue'
	export default {
		components: {
			HomeHeader,
			HomeSwiper,
			HomeContent,
			HomeSpecial
		},
		data() {
			return {
				title: '欢迎使用',
				swiperList: [
					{"id": "0001","imgUrl": "https://m.kguagua.com/uploads/200227/1-20022G64634F1.jpg"},
					{"id": "0002","imgUrl": "https://m.kguagua.com/uploads/200227/1-20022G64H1H5.jpg"},
				],
				HomeContentList: [
					{"id": "001", "imgUrl": "//edu-image.nosdn.127.net/f948e777-7638-47f8-bd4f-867aca4f4984.jpg?imageView&quality=100&thumbnail=336y190", "title": "跟阿秋一起高效学习", "price": "￥199"},
					{"id": "002", "imgUrl": "//edu-image.nosdn.127.net/432fabe1-980e-419f-8c17-463c4aa6f0ad.png?imageView&quality=100&thumbnail=336y190", "title": "25堂通识阅读课 带你打破知识边界", "price": "￥288"},
					{"id": "003", "imgUrl": "//edu-image.nosdn.127.net/65FC4C4DF9049CBCDC358D06FE41E65A.jpg?imageView&quality=100&thumbnail=336y190", "title": " 跟简七学理财", "price": "￥799"},
					{"id": "004", "imgUrl": "//edu-image.nosdn.127.net/4db53305-28cd-49fb-9c40-25968a35a572.jpg?imageView&quality=100&thumbnail=336y190", "title": "能帮你赚到钱的50节商业思维提升课", "price": "￥588"}
				],
				
			}
			
		},
		onLoad() {
			
		},
		// methods: {
		// 	getHomeInfo () {
		// 		uni.request({
		// 		    // url: 'http://localhost:3001/',//仅为示例，并非真实接口地址。
		// 			url: '../../static/mock/datas.json', //仅为示例，并非真实接口地址。
		// 		    success: (res) => {
		// 				const data = res.data;
		// 		        // this.swiperList = data.data.swiperList;
		// 				console.log(res.data)
		// 		        this.text = 'request success';
		// 		    },
		// 			fail: () => {
		// 				console.log('请求失败')
		// 			}
		// 		});
		// 	}
		// },
		mounted () {
			// this.getHomeInfo()
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
	.hswi{
		width:100%;
	}
</style>
